home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / bipl.zip / PROGS.ZIP / IWRITER.ICN < prev    next >
Text File  |  1992-09-28  |  691b  |  25 lines

  1. ############################################################################
  2. #
  3. #    File:     iwriter.icn
  4. #
  5. #    Subject:  Program to write Icon code to write input
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     March 7, 1990
  10. #
  11. ###########################################################################
  12. #
  13. #     Program that reads standard input and produces Icon expressions,
  14. #  which when compiled and executed, write out the original input.
  15. #
  16. #     This is handy for incorporating, for example, message text in
  17. #  Icon programs.  Or even for writing Icon programs that write Icon
  18. #  programs that ... .
  19.  
  20. procedure main()
  21.  
  22.    while  write("write(",image(read()),")")
  23.  
  24. end
  25.